#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/ioctl.h>
#include <fcntl.h>
#include <unistd.h>

int main( )
{

    int dev;
    char buff[128];

    printf("workqueue test start\n");

    dev = open("/dev/workqueue", O_RDWR);
    if(dev < 0) exit(-1);

    printf("read wait\n");
    read(dev,buff,1);
    printf("write 1\n");
    write(dev,buff,1);
    printf("write 2\n");
    write(dev,buff,1);
    printf("program end\n");
    close(dev);

    return 0;
}
